<admintpl file="header" />
</head>
<php>
	$day6 = is_work_day($newweek[5]);
	$day7 = is_work_day($newweek[6]);
</php>
<body style="min-width: 800px;">
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="">本周</a></li>
			<li class=""><a href="{:U('index_print',['print'=>1,'map'=>$map])}">导出</a></li>
			<li class=""><a href="{:U('config')}">其他配置</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('index')}">
			时间
				<input type="text" name="start_time" class="js-date" value="{$_REQUEST[start_time]}" style="width: 80px;" autocomplete="off">-
				<input autocomplete="off" type="text" class="js-date" name="end_time" value="{$_REQUEST['end_time']}" style="width: 80px;"> 
				<button class="btn btn-primary">搜索</button>
				<a class="btn btn-primary" href="{:U('')}">清空</a>
		</form>
		<div>1.点击用户名称，添加行程事件</div>
		<div>2.名单来自员工系统特权配置：添加进高管名单</div>
		<form class="js-ajax-form" method="post">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="5%">姓名</th>
						<th width="5%">部门</th>
						<th width="5%">职位</th>
						<th width="5%">记录</th>
						<foreach name='newweek' item='vo' key='k'> 
							<th width="10%">{$vo}/{$k}</th>
						</foreach>
					</tr>
				</thead>
				<foreach name="list" item="fo" key='k'>
					<tr>
						<td rowspan='3'><a href="{:U('add',['name'=>$k])}">{$k}</a></td>
						<td rowspan='3'>{$fo.dep_name}</td>
						<td rowspan='3'>{$fo.pos_title}</td>
						<td>指纹记录</td>
	 					<volist name='fo.list.type_1' id='vo1'>
							<td>{$type[$vo1[type]]}</td>
						</volist> 
					</tr>
					<tr>
						<td>外出/出差</td>
	 					<volist name='fo.list.type_default' id='vo_default'>
							<td>
								<a href="{:U('edit',['id'=>$vo_default[id]])}">{$type[$vo_default[type]]}
									<notempty name='vo_default.text'>
										({$vo_default[text]})
									</notempty>
								</a>
							</td>
						</volist> 
					</tr>
					<tr>
						<td>请假</td>
	 					<volist name='fo.list.type_4' id='vo4'>
							<td><a href="{:U('edit',['id'=>$vo4[id]])}">{$vo4[text]}</a></td>
						</volist> 
					</tr>
				</foreach>
			</table>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		var _range = "{:I('range')}";
			$(this).addClass('active');
		if (_range == '' || _range == 2) {
			$('.nav li:eq(0)').addClass('active');
		}
		if (_range == 1) {
			$('.nav li:eq(1)').addClass('active');
		}
		if (_range == 3) {
			$('.nav li:eq(2)').addClass('active');
		}
	</script>
</body>
</html>